<template>
  <view class="container">
    <view class="welcome">
      <text class="title">学生管理系统</text>
      <text class="subtitle">UniApp 实现的学生增删改查系统</text>
    </view>
    
    <button class="enter-btn" @click="goToStudentList">进入系统</button>
  </view>
</template>

<script>
export default {
  methods: {
    goToStudentList() {
      uni.navigateTo({
        url: '/pages/student/list'
      });
    }
  }
};
</script>

<style>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.welcome {
  text-align: center;
  margin-bottom: 80rpx;
}

.title {
  font-size: 56rpx;
  font-weight: bold;
  color: white;
  margin-bottom: 20rpx;
}

.subtitle {
  font-size: 32rpx;
  color: rgba(255, 255, 255, 0.8);
}

.enter-btn {
  width: 70%;
  height: 100rpx;
  line-height: 100rpx;
  background-color: white;
  color: #2575fc;
  font-size: 36rpx;
  font-weight: bold;
  border-radius: 50rpx;
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.2);
}
</style>